#!/bin/bash
read -p "Please input your user: " user
id $user &>/dev/null
if [ $? -eq 0 ]
then
    echo "$user exist"
else
    echo "$user not exist"
fi
